Skip to content

Conversation

@fjtirado
Copy link
Collaborator

Fix #929 and #926

Signed-off-by: fjtirado <ftirados@redhat.com>
secretManager =
ServiceLoader.load(SecretManager.class)
.findFirst()
.orElseGet(() -> s -> configManager.config(s, String.class));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default secrets are properties!

configManager =
ServiceLoader.load(ConfigManager.class)
.findFirst()
.orElseGet(() -> new SystemPropertyConfigManager());
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default properties are java system properties

String name, WorkflowAdditionalObject<T> additionalObject) {
if (additionalObjects == null) {
additionalObjects = new ConcurrentHashMap<>();
additionalObjects = new HashMap<>();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but this can be a regular hashmap, since syncrhonization is not required for unvariant hashmap like this one once the application is built

public record WorkflowError(
String type, int status, String instance, String title, String details) {

public static final Errors.Standard RUNTIME_TYPE = Errors.RUNTIME;
Copy link
Collaborator Author

@fjtirado fjtirado Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those two ones were never used. I was trying to avoid accesing Errors from runtime context, but at the end is kind of confusing

…ExpressionTest.java

Co-authored-by: Ricardo Zanini <1538000+ricardozanini@users.noreply.github.com>
@fjtirado fjtirado merged commit 4b79f1b into serverlessworkflow:main Oct 31, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement secret runtime expression

2 participants